using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Workspace
{
    /// <summary>
    /// <para>Update Geodatabase Connection Properties To Branch</para>
    /// <para>Updates an enterprise geodatabase connection to work with branch versioning.</para>
    /// <para>更新企业级地理数据库连接以使用分支版本化。</para>
    /// </summary>    
    [DisplayName("Update Geodatabase Connection Properties To Branch")]
    public class UpdateGeodatabaseConnectionPropertiesToBranch : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public UpdateGeodatabaseConnectionPropertiesToBranch()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_input_database">
        /// <para>Input Geodatabase Connection</para>
        /// <para>The input enterprise geodatabase connection to update.</para>
        /// <para>要更新的输入企业级地理数据库连接。</para>
        /// </param>
        public UpdateGeodatabaseConnectionPropertiesToBranch(object _input_database)
        {
            this._input_database = _input_database;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Update Geodatabase Connection Properties To Branch";

        public override string CallName => "management.UpdateGeodatabaseConnectionPropertiesToBranch";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_input_database, _out_workspace];

        /// <summary>
        /// <para>Input Geodatabase Connection</para>
        /// <para>The input enterprise geodatabase connection to update.</para>
        /// <para>要更新的输入企业级地理数据库连接。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Geodatabase Connection")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _input_database { get; set; }


        /// <summary>
        /// <para>Updated Geodatabase Connection Properties To Branch</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Geodatabase Connection Properties To Branch")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_workspace { get; set; }


        public UpdateGeodatabaseConnectionPropertiesToBranch SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}